from django.db import models

# Create your models here.

# class max_price(models.Model):
#     price=models.CharField(max_length=20)


class Job(models.Model):
    job_name = models.CharField(max_length=100)
    pay = models.IntegerField()
    company = models.CharField(max_length=100)
    adress = models.CharField(max_length=200)
    tid = models.ForeignKey('Type', models.DO_NOTHING, db_column='tid')
    region = models.CharField(max_length=100)

    class Meta:
        managed = True
        db_table = 'job'

class Type(models.Model):
    tid = models.AutoField(primary_key=True)
    typename = models.CharField(max_length=100)

    class Meta:
        managed = True
        db_table = 'type'



